package com.mytx.pojo;


import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


public class User {
    private String uId;

    private String aliUid;

    private String aliAccount;

    private String username;

    private String password;

    private String payPassword;

    private BigDecimal payLimit;//免密支付的额度

    private String phone;

    private Integer gender;

    private String nick;

    private String avatar;

    private String area;

    private List<OrderReceiveInfo> orderReceiveInfos; //收货地址等信息

    private BigDecimal balance;//普通余额，可以提现

    private BigDecimal deposit;//保证金：比如竞价广告位的时候，需要生成对应出价金额的保证金

    private BigDecimal donationAmount; //捐出的总金额

    @Deprecated
    private BigDecimal donationBalance;//收到捐款的余额

    private BigDecimal donationReceived;//收到捐款的总额

    private String email;

    private Date created;

    private Date updated;

    private Date birthday;

    private String salt;

    private Integer status;

    private Integer type;
    private Boolean isFollow;
    public User(Integer gender, String area, BigDecimal donationAmount) {
        this.gender = gender;
        this.area = area;
        this.donationAmount = donationAmount;
    }

    public User(String uId, String username, Integer gender, String avatar, String area) {
        this.uId = uId;
        this.username = username;
        this.gender = gender;
        this.avatar = avatar;
        this.area = area;
    }

    public User(String uId, String username, String phone, BigDecimal balance, BigDecimal deposit, String password, String payPassword, BigDecimal payLimit, String aliUid, String aliAccount, Integer gender, String nick, String avatar, String area, List orderReceiveInfos, BigDecimal donationAmount, BigDecimal donationBalance, BigDecimal donationReceived, String email, Date created, Date updated, Date birthday, Integer status, Integer type) {
        this.uId = uId;
        this.username = username;
        this.phone = phone;
        this.balance = balance;
        this.deposit = deposit;
        this.password = password;
        this.payPassword = payPassword;
        this.payLimit = payLimit;
        this.aliUid = aliUid;
        this.aliAccount = aliAccount;

        this.gender = gender;
        this.nick = nick;
        this.avatar = avatar;
        this.area = area;
        this.orderReceiveInfos = orderReceiveInfos;
        this.donationAmount = donationAmount;
        this.donationBalance = donationBalance;
        this.donationReceived = donationReceived;
        this.email = email;
        this.created = created;
        this.updated = updated;
        this.birthday = birthday;
        this.status = status;
        this.type = type;
    }

    public Boolean isFollow() {
        return isFollow;
    }

    public void setFollow(Boolean follow) {
        isFollow = follow;
    }

    public User(String uId) {
        this.uId = uId;
    }

    public User() {
        super();
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId == null ? null : uId.trim();
    }

    public String getAliUid() {
        return aliUid;
    }

    public void setAliUid(String aliUid) {
        this.aliUid = aliUid;
    }


    public String getAliAccount() {
        return aliAccount;
    }

    public void setAliAccount(String aliAccount) {
        this.aliAccount = aliAccount;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public BigDecimal getPayLimit() {
        return payLimit;
    }

    public void setPayLimit(BigDecimal payLimit) {
        this.payLimit = payLimit;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick == null ? null : nick.trim();
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area == null ? null : area.trim();
    }

    public List<OrderReceiveInfo> getOrderReceiveInfos() {
        return orderReceiveInfos;
    }

    public void setOrderReceiveInfos(List<OrderReceiveInfo> orderReceiveInfos) {
        this.orderReceiveInfos = orderReceiveInfos;
    }

    public BigDecimal getDonationAmount() {
        return donationAmount;
    }

    public void setDonationAmount(BigDecimal donationAmount) {
        this.donationAmount = donationAmount;
    }

    public BigDecimal getDeposit() {
        return deposit;
    }

    public void setDeposit(BigDecimal deposit) {
        this.deposit = deposit;
    }

    public BigDecimal getDonationBalance() {
        return donationBalance;
    }

    public void setDonationBalance(BigDecimal donationBalance) {
        this.donationBalance = donationBalance;
    }

    public BigDecimal getDonationReceived() {
        return donationReceived;
    }

    public void setDonationReceived(BigDecimal donationReceived) {
        this.donationReceived = donationReceived;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}